package com.tc.common.enums;

import com.tc.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResponseCodeEnum implements BaseExceptionInterface {
    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("AUTH-10000", "出错啦，后台小哥正在努力修复中..."),
    PARAM_NOT_VALID("AUTH-10001", "参数错误"),
    USER_NOT_EXIST("10010", "当前用户不存在"),
    USER_ALREADY_EXIST("10011", "当前用户已经存在， 请直接登录"),
    VERFICATION_CODE_ERROR("10012", "验证码错误"),
    USER_PASSWORD_NOT_RIGHT("10013", "密码不正确，重新输入"),
    USER_NOT_LOGIN("10014", "当前没有登录。"),
    REGISTER_SUCCESS_LOGIN("10015", "注册成功，开始登录"),
    VERIFICATION_CODE_SEND_FREQUENTLY("10016", "验证码请求过于频繁，请稍后重试"),
    PHONE_OR_PASSWORD_ERROR("10017", "手机号密码错误"),
    LOGIN_TYPE_ERROR("10018", "未知登陆类型"),
    LOGIN_FAIL("AUTH-20005", "登录失败"),
    USER_NOT_FOUND("USER-20007", "该用户不存在"),

    ;
    // 异常码
    private String errorCode;

    // 错误信息
    private String errorMessage;
}

